package com.ms.education.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 课程类别
 * </p>
 *
 * @author ms
 * @since 2023-01-15
 */
@ToString
@Getter
@Setter
@TableName("edu_subject")
@ApiModel(value = "Subject对象", description = "课程类别")
public class Subject implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "id")
    private Integer id;

    @ApiModelProperty("内容")
    @TableField("title")
    @Excel(name = "title")
    private String title;

    @ApiModelProperty("父类别id")
    @TableField("parent_id")
    @Excel(name = "parent_id")
    private Integer parentId;

    @ApiModelProperty("排序")
    @TableField("sort")
    @Excel(name = "sort")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    @Excel(name = "gmt_create")
    private Date gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "gmt_modified")
    private Date gmtModified;


}
